SUMMARY = "Kernel loadable module for Vivante GPU"
DESCRIPTION = "Builds the Vivante GPU kernel driver as a loadable kernel module, \
allowing flexibility to use a newer graphics release with an older kernel."
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
KERNEL_SRC = "git://gitee.com/phytium_embedded/phytium-linux-kernel.git;protocol=https;branch=${KERNEL_BRANCH}"
SRC_URI = "${KERNEL_SRC}"
SRC_URI:append = " file://0001-Add-vpu-driver-add-vpu-in-phytium_defconfig.patch  \
	         file://0002-Add-vpu-in-pe220x-dtsi.patch  \
                 file://0004-Add-vpu-in-other-e2000q-board.patch \ 
                 file://0005-Makefile-update.patch \
"

KERNEL_BRANCH = "linux-4.19"

SRCREV = "9b16f504fde64d82530b25810dca1247f1ef63a8"
S = "${WORKDIR}/git"
B = "${WORKDIR}/git/drivers/staging/phytium-vpu"

inherit module

EXTRA_OEMAKE += "CONFIG_VIDEO_PHYTIUM_VPU=m "
KERNEL_MODULE_AUTOLOAD += "phytium_vpu_mem phytium_vpu_vxd"
